package com.nuit.cxl;

@TableNameTest("tb_person")
public class Person extends Object{

    @AnnotationField(name="person_id", type = "int64")
    private int id;
    @AnnotationField(name="name", type = "varchar")
    public String name;
    @AnnotationField(name="person_age", type = "int64")
    public int age;

    public Person() {
    }

    public Person(int id, String name, int age) {
        this.id = id;
        this.name = name;
        this.age = age;
    }

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    private String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    public String toString(String str) {
        return "toString " + str;
    }
}
